package cn.tedu.charging.order.feign;


import cn.tedu.charging.commom.pojo.JsonResult;
import cn.tedu.charging.commom.pojo.vo.UserInfoVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 订单用来访问用户服务的客户端
 *
 */
//userService 要和 nacos 里的服务名称一致,你要调用谁,就写谁
@FeignClient("userService")
public interface UserClient {

    @GetMapping("/user/info/{userId}")
    JsonResult<UserInfoVO> getUserCarInfo(@PathVariable("userId") Integer userId);

}
